<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<span th:text="${meg}"></span><br>
<hr/>
<span th:text="${user.id}"></span><br>
<span th:text="${user.name}"></span><br>
<span th:text="${user.sex}"></span><br>
<span th:text="${user.age}"></span><br>
<hr/>
<span th:text="${#request.getAttribute('username')}"></span><br>
<span th:text="${#session.getAttribute('usernmae')}"></span><br>
<hr/>
<span th:text="${#dates.format(date,'yyyy-MM-dd HH:ss:mm')}"></span><br>
<hr/>
<span th:text="'欢迎'+${meg}"></span><br>
<span th:text="|欢迎${meg}|"></span><br>

</body>
</html>